package com.future.hair.server.custom.config;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.future.hair.server.config.jjwt.JwtHelper;
import com.future.hair.server.config.result.CommonResult;
import com.future.hair.server.config.result.ResultCode;
import com.future.hair.server.entity.User;
import com.future.hair.server.mapper.UserMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("//hair/config")
@Api(tags = "config配置信息")
public class ConfigController {
    @Autowired
    private UserMapper mapper;

    @ApiOperation(value = "腾讯cos")
    @RequestMapping(value = "/cos", method = RequestMethod.GET)
    public CommonResult<Map<String,String>> userId() {
        Map<String,String> configInfo = new HashMap<String,String>();
        configInfo.put("region","ap-shanghai");
        configInfo.put("bucketName","hairbucket-1257777983");
        configInfo.put("secretId","AKIDav72nDLr53sc6KnStAD2mGUYNwEGNubV");
        configInfo.put("secretKey","oMm0zrRm0zA73mI1ylHWdaHjwW5mDUWH");
        configInfo.put("bucketDomain","https://hairbucket-1257777983.cos.ap-shanghai.myqcloud.com");
        return CommonResult.data(configInfo);
    }
}
